package com.lu.pojo;

import java.util.Date;

public class Goods {
    /** 物品编号 */
    private int gid ;
    /** 类型 */
    private int tid ;
    /** 物主编号 */
    private int uid ;
    /** 物品名称 */
    private String gname ;
    /** 价格 */
    private Double price ;
    /** 上架时间 */
    private Date registerdate ;
    /** 物品描述 */
    private String description ;
    // 是否售出
    private String sell;
    /** 创建人 */
    private String createdBy ;
    /** 创建时间 */
    private Date createdTime ;
    /** 更新人 */
    private String updatedBy ;
    /** 更新时间 */
    private Date updatedTime ;

    public Goods() {
    }

    public Goods(int gid, String sell, String updatedBy) {
        this.gid = gid;
        this.sell = sell;
        this.updatedBy = updatedBy;
    }

    public Goods(int gid, int uid, String gname, Double price, Date registerdate, String sell) {
        this.gid = gid;
        this.uid = uid;
        this.gname = gname;
        this.price = price;
        this.registerdate = registerdate;
        this.sell = sell;
    }
    public Goods(int gid, int uid, String gname, Double price, Date registerdate) {
        this.gid = gid;
        this.uid = uid;
        this.gname = gname;
        this.price = price;
        this.registerdate = registerdate;
    }

    public Goods(int gid, String gname, Double price, Date registerdate) {
        this.gid = gid;
        this.gname = gname;
        this.price = price;
        this.registerdate = registerdate;
    }

    public Goods(int tid, int uid, String gname, Double price, String description, String createdBy) {
        this.tid = tid;
        this.uid = uid;
        this.gname = gname;
        this.price = price;
        this.description = description;
        this.createdBy = createdBy;
    }

    public int getGid(){
        return this.gid;
    }
    public void setGid(int gid){
        this.gid=gid;
    }
    public int getTid(){
        return this.tid;
    }
    public void setTid(int tid){
        this.tid=tid;
    }
    public int getUid(){
        return this.uid;
    }
    public void setUid(int uid){
        this.uid=uid;
    }
    public String getGname(){
        return this.gname;
    }
    public void setGname(String gname){
        this.gname=gname;
    }
    public Double getPrice(){
        return this.price;
    }
    public void setPrice(Double price){
        this.price=price;
    }
    public Date getRegisterdate(){
        return this.registerdate;
    }
    public void setRegisterdate(Date registerdate){
        this.registerdate=registerdate;
    }
    public String getDescription(){
        return this.description;
    }
    public void setDescription(String description){
        this.description=description;
    }

    public String getSell() {
        return sell;
    }

    public void setSell(String sell) {
        this.sell = sell;
    }

    public String getCreatedBy(){
        return this.createdBy;
    }
    public void setCreatedBy(String createdBy){
        this.createdBy=createdBy;
    }
    public Date getCreatedTime(){
        return this.createdTime;
    }
    public void setCreatedTime(Date createdTime){
        this.createdTime=createdTime;
    }
    public String getUpdatedBy(){
        return this.updatedBy;
    }
    public void setUpdatedBy(String updatedBy){
        this.updatedBy=updatedBy;
    }
    public Date getUpdatedTime(){
        return this.updatedTime;
    }
    public void setUpdatedTime(Date updatedTime){
        this.updatedTime=updatedTime;
    }
}
